package com.jackie.coupon.claculation.services;

import com.jackie.coupon.claculation.api.ShoppingCart;
import com.jackie.coupon.claculation.api.SimulationOrder;
import com.jackie.coupon.claculation.api.SimulationResponse;

/**
 * CouponCalculationService
 *
 * @author Jackie Hou
 * @date 2023/11/17 16:18
 * @version 1.0
 */
public interface CouponCalculationService {

    /**
     * 计算价格
     * @param cart
     * @return
     */
    ShoppingCart calculateOrderPrice(ShoppingCart cart);

    /**
     * 试算
     * @param order
     * @return
     */
    SimulationResponse simulate(SimulationOrder order);
}
